>>> import requests >>> requests.utils.quote('[email protected]') 'test%2Buser%40gmail.com'